<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/operationsinfo/operationslist/q_operationsList.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/operationsinfo/operationslist/q_operationsList.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'OperationsList',
                footer: "Foots",
                cnName: '运维服务单明细',
                name: 'operationslist/q_operationsList',
                url: "/q_operationsList/",
                sortName: "Code"
            });
            const editFormFields = ref({"Case":"","Image":"","Attachment":"","Remark":""});
            const editFormOptions = ref([[{"title":"维护情况","field":"Case"},
                               {"title":"图片","field":"Image","type":"img"},
                               {"title":"附件","field":"Attachment","type":"file"},
                               {"title":"备注","field":"Remark"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'OperationsList',title:'ID',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'Operations',title:'父ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'Code',title:'运维内容编码',type:'int',width:120,require:true,align:'left',sort:true},
                       {field:'Name',title:'运维名称',type:'string',width:110,require:true,align:'left'},
                       {field:'Operations_date',title:'应运维日期',type:'datetime',width:150,require:true,align:'left',sort:true},
                       {field:'Case',title:'维护情况',type:'string',width:220,align:'left'},
                       {field:'Image',title:'图片',type:'img',width:110,align:'left'},
                       {field:'Attachment',title:'附件',type:'file',width:110,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
